#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* botton = new QPushButton(this);
    botton->setText("按钮");
    connect(botton, &QPushButton::clicked, this, [=](){
        qDebug() << "great！";
        botton->move(600, 300);
        this->move(500,500);
    });
}

Widget::~Widget()
{
    delete ui;
}

